#include "process.h"
#include <stdio.h>
#include <unistd.h> 
typedef void (*callback_t)(double total,double current);
void Download(callback_t cd){
double total=1024.0;
double speed =2.0;
double current=0;


while(current<=total){

current+=speed;
cd(total,current);
usleep(3000);
}

printf("1025mb downloaded done!!!");


}



int main(){

Download(FlushProcess);

return 0;

}